package router

import (
	"github.com/gin-gonic/gin"
	"user-srv/handler/service"
	"user-srv/middleware"
)

func Router(c *gin.Engine) {

	c.POST("/register", service.Register)
	c.POST("/send", service.SendSms)
	c.POST("/login", service.Login)
	c.Group("/api", middleware.JWTPare())
}
